package com.hc.res;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author hecai
 */

/**
 * 商品类别列表项
 */
@ApiModel(value = "商品类别列表项")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CategoryItem {
    /**
     * 类别编号
     */
    @ApiModelProperty(value = "类别编号")
    private Integer id;

    /**
     * 类别名称
     */
    @ApiModelProperty(value = "类别名称")
    private String name;

    /**
     * 显示优化级
     */
    @ApiModelProperty(value = "显示优化级")
    private Integer priority;

    /**
     * 父类别编号
     */
    @ApiModelProperty(value = "父类别编号")
    private Integer pid;

    /**
     * 子类别
     */
    @ApiModelProperty(value = "子类别")
    private List<CategoryItem> children;
}